// Downsample the dis buffer 
#include "./src/shared.h"

samplerRect src0;

void main(void)
{
	vec2 coord = gl_FragCoord*2;

	gl_FragData[0] = (textureRect(src0, coord) + 
		textureRect(src0, coord + vec2(1,0)) + 
		textureRect(src0, coord + vec2(1,1)) +
		textureRect(src0, coord + vec2(0,1)))/4.0;

}
